home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Includes / UErrorMgr.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.9 KB  |  58 lines  |  [TEXT/MPS ]

  1. // UErrorMgr.h
  2. // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4.  
  5. #ifndef __UERRORMGR__
  6. #define __UERRORMGR__
  7.  
  8. // MacApp
  9.  
  10. #ifndef __MACAPPTYPES__
  11. #include "MacAppTypes.h"
  12. #endif
  13.  
  14. #ifndef __UCOREERRORMGR__
  15. #include "UCoreErrorMgr.h"
  16. #endif
  17.  
  18. // Toolbox
  19.  
  20. //----------------------------------------------------------------------------------------
  21. // Global variables
  22. //----------------------------------------------------------------------------------------
  23.  
  24. extern ProcPtr gMacAppAlertFilter;
  25.     // The default filter proc. Will be automatically set to point to MacAppAlertFilter.
  26.     // Set this to NULL in your code if you don't want it or call it from your own filter
  27.     // proc if you just want to add behavior. Someday we will fix all this to be Object
  28.     // based.
  29.  
  30. extern Boolean gInFilter;
  31.     // Flag that is set when we are in the MacAppAlertFilter, used to indicate if we
  32.     // should re-enter MacApp to handle updates or not
  33.  
  34. extern Boolean gInhibitNestedHandling;
  35.     // True if Failure was executed and the outer- most event loop has not been reached or
  36.     // the ErrorAlert routing has not yet shown the failure to the user. Also may be set
  37.     // to true to inhibit continued operation of MacApp Activate/ Update handling and
  38.     // idling during MacAppAlerts.
  39.  
  40.  
  41. //----------------------------------------------------------------------------------------
  42. // Global routines
  43. //----------------------------------------------------------------------------------------
  44.  
  45. extern void ErrorAlert(OSErr err, long message);
  46.     // Displays an error alert box. The message displayed in the alert is constructed base
  47.     // upon err and message, as described in the "Failure Handling" section of the
  48.     // "Cookbook" chapter of the MacApp manual.
  49.  
  50. extern short MacAppAlert(ResNumber alertID, ProcPtr filterProc);
  51.     // Does SetCursor(arrow) before calling Alert.
  52.  
  53. extern void StdAlert(ResNumber alertID);
  54.     // no filterProc, reply ignored
  55.  
  56.  
  57. #endif // __UERRORMGR__
  58.